using Core;
using System;
using System.Collections.Generic;
using UnityEngine;

//[Serializable]
//public class A
//{
//    public int Type;
//}

//[Serializable]
//public class B : A
//{
//    public string Name;
//}

//[Serializable]
//public class Data
//{
//    public List<A> Arr;
//}

public class TestJson : MonoBehaviour
{
    // Start is called before the first frame update

    void Start()
    {
        //var d = new Data();
        //var a1 = new A() { Type = 1 };
        //var a2 = new A() { Type = 2 };
        //var b1 = new B() { Type = 3, Name = "b1" };
        //var b2 = new B() { Type = 4, Name = "b2" };

        //d.Arr = new List<A> { a1, a2, b1, b2 };

        //var str = Utils.Json.Serialize(d);
        //var d2 = Utils.Json.Deserialize<Data>(str);
        //log.d(d2.Arr.Count);
    }

    // Update is called once per frame
    void Update()
    {

    }
}
